<style>
.form-group{float: left;margin:0 10px 10px 0;}
.form-group select{height: 30px;}
.post-search{float: left;margin:10px 0px;}
.common-ui{height: 40px;line-height: 40px;background:#169dd9;width: 100%;color:#fff;font-size: 14px;text-indent: 12px;display: block;float: left;margin-bottom: 10px;font-weight:normal;}
</style>
<div class="pagination pull-right">
    <?php echo yii\widgets\LinkPager::widget([
        'pagination' => $pager,
        'hideOnSinglePage'=>false,
        'prevPageLabel' => '&#8249;',
        'nextPageLabel' => '&#8250;',
    ]); ?>
</div>
<div class="pagination pull-right">
    <span>共<?=$total?>条</span>
    <div class="pagination ui-select" style="margin-right: 10px;">
        <select name="per-page">
            <option value="10">10条/页</option>
            <option value="20">20条/页</option>
            <option value="50">50条/页</option>
            <option value="100">100条/页</option>
            <option value="200">200条/页</option>
            <option value="300">300条/页</option>
            <option value="500">500条/页</option>
        </select>
    </div>
</div>

<script>
    $(":input[name=per-page]").val('<?=$pagesize?>');
    $(":input[name=per-page]").change(function() {
        var size=$(':input[name=per-page]').find('option:selected').val();
        window.location.href='<?=$pageurl?>'+size;
    });
</script>